package first.endtoend.messages

/**
 * Created with IntelliJ IDEA.
 * User1: user
 * Date: 28/02/13
 * Time: 15:35
 * To change this template use File | Settings | File Templates.
 */


public enum MessageCode {

    SUCCESS(200),
    MALFORMED_REQUEST(400),
    FAIL_RETRIEVE(401),
    NOT_FOUND(404),

    //HTTP Status Codes 500-505 - Server Error Status Codes
            SERVER_ERROR(500),
    NULL_RESPONSE(501),
    ID_NOT_FOUND(502),
    OBJECT_NOT_FOUND(503),
    FAIL(504),
    TEST_FAIL(505),

    FAMILY_ADD(1),
    FAMILY_UPDATE(2),
    FAMILY_DELETE(3),

    PRODUCT_ADD(4),
    PRODUCT_UPDATE(5),
    PRODUCT_DELETE(6),

    AID_ADD(7),
    AID_UPDATE(8),
    AID_DELETE(9),

    // ACTUALLY NOT USED
            /* BENEF_ADD(10),
             BENEF_UPDATE(11),*/
            BENEF_DELETE(12),

    //TODO add documentation
            ADD(10),
    UPDATE(11),
    DELETE(12),


    private final int value

    /* private TabSelectorEnum(int value) {
         this.value = value
     }*/

    int value() { value }

    MessageCode(int aValue)
    {
        this.value = aValue
    }
}